package juc.day01;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author wang hao
 * @date 2023-02-23 19:38
 */
public class Demo01 {

    public static void main(String[] args) {
        ExecutorService threadPool = Executors.newFixedThreadPool(3);
        threadPool.submit(new MyRunnable());
        threadPool.submit(new MyRunnable());
        threadPool.submit(new MyRunnable());

        // 销毁 线程池
        threadPool.shutdown();
    }

}
